package com.imooc;

public class FunChongZai {

	public static void main(String[] args) {
		float m = 5.6f,n= 8.9f;
		double a = 3.2,b=4.4;
		
		FunChongZai obj = new FunChongZai();
		obj.max(m,n);
		obj.max(a,b);
	}

	public void max(double a,double b) {
		double max;
		if(a>b) {
			max = a;
		}else {
			max = b;
		}
		System.out.println("double:"+max);
	}
	
	public void max(float a,float b) {
		float max;
		if(a>b) {
			max = a;
		}else {
			max = b;
		}
		System.out.println("float:"+max);
	}
	
}
